package com.gec.system.custom;

import com.gec.system.system.SysMenu;
import com.gec.system.system.SysUser;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.security.authentication.jaas.AuthorityGranter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;
import java.util.GregorianCalendar;
@Getter
@Setter

public class CustomUser extends User {
    private SysUser sysUser ;
    public CustomUser(SysUser sysUser, Collection<? extends GrantedAuthority> authorities) {
        super(sysUser.getUsername(), sysUser.getPassword(),authorities);
        this.sysUser = sysUser;
    }


}
